package org.sanguine.plugin.timetracker.events;

import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.project.Project;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
 * <p>
 * </p>
 * <p>
 * <b>Date:</b> 21.11.2014
 * </p>
 *
 * @author Alexey_Kuznetsov
 */
public class OpenTimerDialogEvent extends ActionEvent {
    private final DataContext context;
    private final Project project;
    private final Icon icon;

    public OpenTimerDialogEvent(Object source, int id, String command, DataContext context, Project project, Icon icon) {
        super(source, id, command);
        this.context = context;
        this.project = project;
        this.icon = icon;
    }

    public DataContext getContext() {
        return context;
    }

    public Project getProject() {
        return project;
    }

    public Icon getIcon() {
        return icon;
    }
}
